<?php 


class ModuleList extends DBList {
	
	protected $dbTable = "tblModule";
	protected $rowClassType = "ModuleItem";
	
}

class ModuleItem extends DBListItem {
	public function __construct($data=null, $parent=null) {
		if(!(is_bool($parent) && $parent==false)) {
			parent::__construct($data, $parent);
		
			//Load Columns
			$l = new ModuleInstanceList($this);
			$this->customdata["instances"] = $l->getByFkModule($this->pkModule);
		}
		else {
			parent::__construct($data, null);
		}		
	}
		
}
?>